<?php
/**
 * @Author: lianlianzan(13040@qq.com)
 * @Date:   2020-11-13 22:56:19
 * @Last Modified by:   lianlianzan
 * @Last Modified time: 2021-05-03 14:21:40
 */

return [

	'sys_identify'	=> 'mobmall',
	'sys_name'	=> '微分销商城',
	
	//=====商品相关
	//商品审核状态
	'product_status_config' => [
		'1' => '出售中',
		'2'	=> '待审核',
		'3'	=> '已下架',
	],

	//商品类型
	'product_type_config' => [
		'1'	=> '普通商品',
		'2'	=> '拼团商品',
		'3'	=> '秒杀商品',
		//'3'	=> '票务商品',
		//'4'	=> '礼包商品',
		//'5'	=> '分销商品',
		//'6'	=> '活动列表',
	],

	//商品模式
	'product_mode_config' => [
		'1'	=> '线上核销',
		'2'	=> '线下物流',
		'3'	=> '线下物流+自提',
	],

	//留言字段选项
	'leavemess_option_config' => [
		'1' => array(
			'issys'	=> 1,
			'name'	=> '姓名',
			'desc'	=> '系统预设字段',
			'flag'	=> 'realname',
		),
		'2' => array(
			'issys'	=> 1,
			'name'	=> '手机',
			'desc'	=> '系统预设字段',
			'flag'	=> 'mobile',
		),
		'3' => array(
			'issys'	=> 1,
			'name'	=> '人数',
			'desc'	=> '系统预设字段',
			'flag'	=> 'sign_num',
		),
		'4' => array(
			'issys'	=> 1,
			'name'	=> '身份证号码',
			'desc'	=> '系统预设字段',
			'flag'	=> 'idcard',
		),
		'5' => array(
			'issys'	=> 1,
			'name'	=> '地址',
			'desc'	=> '系统预设字段',
			'flag'	=> 'address',
		),
		'21' => array(
			'name'	=> '扩展字段一',
			'flag'	=> 'expand1',
		),
		'22' => array(
			'name'	=> '扩展字段二',
			'flag'	=> 'expand2',
		),
		'23' => array(
			'name'	=> '扩展字段三',
			'flag'	=> 'expand3',
		),
		'24' => array(
			'name'	=> '扩展字段四',
			'flag'	=> 'expand4',
		),
	],

	//留言信息类型
	'leavemess_type_config' => [
		'text'		=> '文字',
		'textarea'	=> '多行文字',
		'radio'		=> '单选',
		'checkbox'	=> '选择',
	],

	//=====订单相关
	//订单类型
	'ord_type_config' => [
		'1'		=> '商品订单',
		'21'	=> '会员卡订单',
		'31'	=> '余额充值订单',
	],

	//订单商品类型
	'ord_product_config' => [
		'1'		=> '商品订单',
		'2'		=> '拼团订单',
		'3'		=> '砍价订单',
	],

	//订单交易状态
	'trade_status_config' => [
		'1'		=> '待付款',
		'2'		=> '等待商家发货', //已支付
		'3'		=> '商家已发货',
		'5'		=> '已完成', //已核销
		'8'		=> '用户取消',
		'7'		=> '超时交易完毕',
		'8'		=> '申请退款',
		'11'	=> '退款/售后',
		'21'	=> '已评价',
	],

	//订单支付状态
	'pay_status_config' => [
		'1'		=> '待付款',
		'2'		=> '已支付',
	],

	//订单退款状态
	'refund_status_config' => [
		'1'		=> '普通订单',
		'2'		=> '申请退款',
		'8'		=> '退款中',
		'9'		=> '已退款',
	],

	//订单删除状态
	'del_status_config' => [
		'1'		=> '正常',
		'2'		=> '<font color="red">已失效</font>',
	],

	//订单退款表状态
	'order_refund_status_config' => [
		'1'		=> '<span class="label label-warning">待处理</span>',
		'2'		=> '<span class="label label-info">已处理</span>',
	],

	//订单商品状态
	'order_product_status_config' => [
		'1'		=> '待付款',
		'2'		=> '已支付',
		'3'		=> '已发货',
		'8'		=> '退款中',
		'9'		=> '已退款',
	],

	//拼团状态
	'group_status_config' => [
		'1'		=> '拼单中',
		'2'		=> '拼成功',
		'3'		=> '拼失败',
	],

	//秒杀相关,预留用户状态
	'reserve_config' => [
		'1'		=> '待秒杀',
		'2'		=> '<span class="text-red">已秒杀</span>',
	],
	
	'pay_class_config' => [
		'1'	=> array(
			'class'	=> 'order-state-topay',
			'show'	=> '等待买家付款',
		),
		'2'	=> array(
			'class'	=> 'order-state-success',
			'show'	=> '等待商家发货',
		),
		'3'	=> array(
			'class'	=> 'order-state-success',
			'show'	=> '商家已发货',
		),
		'5'	=> array(
			'class'	=> 'order-state-success',
			'show'	=> '交易成功',
		),
		'6'	=> array(
			'class'	=> 'order-state-cancel',
			'show'	=> '用户取消',
		),
		'7'	=> array(
			'class'	=> 'order-state-closed',
			'show'	=> '交易关闭 (超时未付款)',
		),
		'8'	=> array(
			'class'	=> 'order-state-cancel',
			'show'	=> '申请退款',
		),
		'9'	=> array(
			'class'	=> 'order-state-cancel',
			'show'	=> '已退款',
		),
	],

	//运费模板计费方式
	'delivery_config' => [
		'1'	=> '按重量',
		'2' => '按件数',
	],

	//评价分数
	'evaluation_score_config' => [
		'1'	=> '非常差',
		'2' => '差',
		'3'	=> '一般',
		'4'	=> '好',
		'5'	=> '非常好',
	],

	'income_type_config' => [
		'1'	=> '收入',
		'2'	=> '支出',
	],

	'province_config' => [
		'1'		=> [
			'name'	=> '华东',
			'provs'	=> [
				'3'		=> '上海市',
				'10'	=> '江苏省',
				'11'	=> '浙江省',
				'12'	=> '安徽省',
				'14'	=> '江西省',
			]
		],
		'2'		=> [
			'name'	=> '华北',
			'provs'	=> [
				'1'		=> '北京市',
				'2'		=> '天津市',
				'5'		=> '河北省',
				'6'		=> '山西省',
				'15'	=> '山东省',
				'29'	=> '内蒙古自治区',
			]
		],
		'3'		=> [
			'name'	=> '华中',
			'provs'	=> [
				'16'	=> '河南省',
				'17'	=> '湖北省',
				'18'	=> '湖南省',
			]
		],
		'4'		=> [
			'name'	=> '华南',
			'provs'	=> [
				'13'	=> '福建省',
				'19'	=> '广东省',
				'20'	=> '海南省',
				'28'	=> '广西壮族自治区',
			]
		],
		'5'		=> [
			'name'	=> '东北',
			'provs'	=> [
				'7'		=> '辽宁省',
				'8'		=> '吉林省',
				'9'		=> '黑龙江省',
			]
		],
		'6'		=> [
			'name'	=> '西北',
			'provs'	=> [
				'24'	=> '陕西省',
				'25'	=> '甘肃省',
				'26'	=> '青海省',
				'31'	=> '宁夏回族自治区',
				'32'	=> '新疆维吾尔自治区',
			]
		],
		'7'		=> [
			'name'	=> '西南',
			'provs'	=> [
				'4'		=> '重庆市',
				'21'	=> '四川省',
				'22'	=> '贵州省',
				'23'	=> '云南省',
				'30'	=> '西藏自治区',
			]
		],
		'8'		=> [
			'name'	=> '港澳台',
			'provs'	=> [
				'27'	=> '台湾省',
				'33'	=> '香港特别行政区',
				'34'	=> '澳门特别行政区',
			]
		],
		'9'		=> [
			'name'	=> '海外',
			'provs'	=> [
				'29'	=> '其他',
			]
		],
	],

	'province_config0' => [
		'1'		=> '北京市',
		'2'		=> '天津市',
		'3'		=> '上海市',
		'4'		=> '重庆市',
		'5'		=> '河北省',
		'6'		=> '山西省',
		'7'		=> '辽宁省',
		'8'		=> '吉林省',
		'9'		=> '黑龙江省',
		'10'	=> '江苏省',
		'11'	=> '浙江省',
		'12'	=> '安徽省',
		'13'	=> '福建省',
		'14'	=> '江西省',
		'15'	=> '山东省',
		'16'	=> '河南省',
		'17'	=> '湖北省',
		'18'	=> '湖南省',
		'19'	=> '广东省',
		'20'	=> '海南省',
		'21'	=> '四川省',
		'22'	=> '贵州省',
		'23'	=> '云南省',
		'24'	=> '陕西省',
		'25'	=> '甘肃省',
		'26'	=> '青海省',
		'27'	=> '台湾省',
		'28'	=> '广西壮族自治区',
		'29'	=> '内蒙古自治区',
		'30'	=> '西藏自治区',
		'31'	=> '宁夏回族自治区',
		'32'	=> '新疆维吾尔自治区',
		'33'	=> '香港特别行政区',
		'34'	=> '澳门特别行政区',
	],

	'dist_config' => [],

//     private $distConfig = array(
//         '1' => '玉山镇',
//         '2' => '巴城镇',
//         '3' => '周市镇',
//         '4' => '陆家镇',
//         '5' => '张浦镇',
//         '6'=>'开发区',
//         '7'=>'花桥镇',
//         '8'=>'周庄镇',
//         '9'=>'锦溪镇',
//         '10'=>'千灯镇',
//         '11'=>'淀山湖镇'
//     );

	//=====会员卡

	//=====自定义模板相关
	//模板类别
	'wapcustom_kind_config' => [
		'1'		=> [
			'name'	=> '广告位',
			'flag'	=> 'advert',
		],
		'2'		=> [
			'name'	=> '自定义模板',
			'flag'	=> 'custom',
		],
		'3'		=> [
			'name'	=> '活动专区',
			'flag'	=> 'ad',
		],
		'4'		=> [
			'name'	=> '砍价专区',
			'flag'	=> 'ad',
		],
		'5'		=> [
			'name'	=> '红包专区',
			'flag'	=> 'ad',
		],
		'6'		=> [
			'name'	=> '抢购专区',
			'flag'	=> 'ad',
		],
		'7'		=> [
			'name'	=> '实力推荐',
			'flag'	=> 'ad',
		],
		'8'		=> [
			'name'	=> '预约专区',
			'flag'	=> 'ad',
		],
	],

	//推送方式
	'wapcustom_push_config' => [
		'1'	=> '自动',
		'2'	=> '手动'
	],

	//数据来源
	'wapcustom_source_config' => [
		'1'	=> [
			'id' 	=> 1,
			'flag'	=> 'product',
			'name'	=> '商品',
			'sort'	=> [
				'1'	=> '最新',
				'2'	=> '默认排序',
				'3'	=> '最热',
				'4'	=> '销售最多',
				'5'	=> '评论最多',
			]
		],
		'2'	=> [
			'id' 	=> 2,
			'flag'	=> 'shop',
			'name'	=> '店铺',
			'sort'	=> [
				'1'	=> '最新',
				'2'	=> '默认排序',
				'3'	=> '最热',
			]
		],
		'3'	=> [
			'id' 	=> 3,
			'flag'	=> 'article',
			'name'	=> '文章',
			'sort'	=> [
				'1'	=> '最新',
				'2'	=> '默认排序',
				'3'	=> '最热',
			]
		],
	],

	//地址类型
	'consignee_type_config' => [
		'1'	=> '公司',
		'2'	=> '家',
		'3'	=> '学校',
		'4'	=> '其他',
	],
	
	//=====页面跳转相关
	//跳转页面类型
	'page_type_config' => [
		'1' => [
			'flag' => 'index',
			'name' => '首页',
		],
		'2' => [
			'flag' => 'category',
			'name' => '商品分类',
		],
		'3' => [
			'flag' => 'product_detail',
			'name' => '商品详情',
		],
		'4' => [
			'flag' => 'search',
			'name' => '搜索页',
		],
		'7' => [
			'flag' => 'link',
			'name' => '外链',
		],
		'11' => [
			'flag' => 'shopcart',
			'name' => '购物车',
		],
		'12' => [
			'flag' => 'mine',
			'name' => '个人中心',
		],
		'13' => [
			'flag' => 'vipcard',
			'name' => '会员卡',
		],
		'14' => [
			'flag' => 'enter',
			'name' => '商家入驻',
		],
		'15' => [
			'flag' => 'article_detail',
			'name' => '文章详情',
		],
	],

	//目标页面图标
	'page_icon_config' => [
		'1' => 'home',
		'2' => 'category',
		'3' => 'card',
		'4' => 'user',
		'5' => 'shopcart',
		'6' => 'evaluation',
		'7' => 'shop',
	],

	//页面列表配置
	'page_list_config' => [
		'1' => [
			'flag' => 'product_list',
			'name' => '商品',
		],
		'3' => [
			'flag' => 'shop',
			'name' => '商家',
		],
		'4' => [
			'flag' => 'evaluation',
			'name' => '评价',
		],
		'5' => [
			'flag' => 'find',
			'name' => '发现',
		],
		'6' => [
			'flag' => 'index',
			'name' => '抢购',
		],
		'7' => [
			'flag' => 'index',
			'name' => '订单',
		],
		'8' => [
			'flag' => 'index',
			'name' => '红包',
		],
		'9' => [
			'flag' => 'index',
			'name' => '拼团',
		],
		'10' => [
			'flag' => 'index',
			'name' => '砍价',
		],
		'11' => [
			'flag' => 'index',
			'name' => '抽奖',
		],
		'12' => [
			'flag' => 'index',
			'name' => '福袋',
		],
		'13' => [
			'flag' => 'index',
			'name' => '九宫格',
		],
	],
	
];